<?php
//-------------------------------------------------------------------------------------------------------
    require_once('../config.inc.php');

    require_once($config['app_dir'] . '/classes/calcplot.class.php');
    require_once($config['app_dir'] . '/classes/class.calc2.php');
    //---------------------------------------------------------------------------------------------------

    //---------------------------------------------------------------------------------------------------
    $Calculator = new objCalculator();

    $Calculator->timeRange[0] = DateConvert::Date2('U', '2007-01-01 12:00:00');//$start;
    $Calculator->timeRange[1] = DateConvert::Date2('U', '2007-05-01 12:00:00');//$finish;
    $Calculator->use_closetime = false; //true - closetime , false - begintime
    $Calculator->slippage = 0;
    $Calculator->contract = 100000;
    $Calculator->balance = 100000;
    $Calculator->deposit = 10000;
    $Calculator->trades = array('2400304','2400103');

    $CalcPlotGenerator = new objCalcPlotGenerator($Calculator);
    $CalcPlotGenerator->clean_image = false;
    $CalcPlotGenerator->mode = 'month';
    //$CalcPlotGenerator->width = 1600;
    var_dump($CalcPlotGenerator->Render());
//-------------------------------------------------------------------------------------------------------
?>
